home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00132_Field_TEM-INTRO.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
5KB
|
172 lines
--
-- INTRO Page Script
--
on enterFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gButton1, gButton2, gButton3
global gLocalSound
global gMusicOn, gCaptionOn
global gCurPath, gNavMode
global gControlPanel, gHotText
global gMap1Icon, gMap2Icon
-- Set up globals for this section
set gNavMode = "intro"
if voidP("gLocalSound") then set gLocalSound = FALSE
if voidP("gMusicOn") then set gMusicOn = TRUE
if voidP("gCaptionsOn") then set gCaptionsOn = TRUE
if voidP("gSoloMode") then set gSoloMode = TRUE
if voidP("gMovieName") then set gMovieName = "*"
if voidP(gCurPath) then
-- set up globals normally set up in START00.DIR
set gCurPath = "Breaking the Waves:Attitude Master:" -- fragile this path for test only
end if
-- make sure the control panel is current in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
-- Set up the sprite/channel relationship for this section
-- Intro Sprites
set gControlIcon = 4
set gButton1 = 5
set gButton2 = 6
set gButton3 = 7
set gIndexIcon = 8
-- Chapter Sprites
set gNextIcon = 10
set gPreIcon = 11
-- Control Panel Sprites
set gNextIcon = 10
set gPreIcon = 11
set gHotText = 12
-- Chapter Sprites
set gMap1Icon = 13
set gMap2Icon = 14
if voidP("gLocalSound") then
set gLocalSound = FALSE
else
set gLocalSound = FALSE
end if
cursor -1
puppetsprite gIndexIcon TRUE
puppetsprite gControlIcon TRUE
puppetsprite gButton1 TRUE
puppetsprite gButton2 TRUE
puppetsprite gButton3 TRUE
set the member of sprite gButton1 to member "button1-icon"
set the member of sprite gButton2 to member "button2-icon"
set the member of sprite gButton3 to member "button3-icon"
set the member of sprite gControlIcon to member "control-icon"
set the member of sprite gIndexIcon to member "index-icon"
if rollOver(gButton1) then
set the member of sprite gButton1 to member "button1-icon-hot"
set the text of member "Message Text" to "Article..."
else if rollOver(gButton2) then
set the member of sprite gButton2 to member "button2-icon-hot"
set the text of member "Message Text" to "Video Interview..."
else if rollOver(gButton3) then
set the member of sprite gButton3 to member "button3-icon-hot"
set the text of member "Message Text" to "Slide Show..."
else if rollOver(gControlIcon) then
set the member of sprite gControlIcon to member "control-icon-hot"
set the text of member "Message Text" to "Reveal the control panel"
else if rollOver(gIndexIcon) then
set the member of sprite gIndexIcon to member "index-icon-hot"
set the text of member "Message Text" to "Return to Table of Contents"
else
set the text of member "Message Text" to "Click on one of the icons..."
end if
dontPassEvent
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gTest
if gSoloMode = FALSE then
keepmusic
end if
set gTest = 1
go to the frame
dontPassEvent
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon, gControlIcon
global gButton1, gButton2, gButton3
set destination = "*"
if the ClickOn = gButton1 then
set destination = "C1"
end if
if the ClickOn = gButton2 then
set destination = "C2"
end if
if the ClickOn = gButton3 then
set destination = "C3"
end if
if the ClickOn = gIndexIcon then
set destination = "index"
end if
if the ClickOn = gControlIcon then
openControlPanel
end if
if destination <> "*" then
puppetsprite gButton1 FALSE
puppetsprite gButton2 FALSE
puppetsprite gButton3 FALSE
puppetsprite gIndexIcon FALSE
puppetsprite gControlIcon FALSE
if destination = "index" then
go to frame "Index" of movie "INDEX"
else
go to frame destination
end if
else
-- alert "Internal Error: I don't know where to go." -- we can't get here
end if
end MouseUp